Skip to content

fix(agent-device): a lease the gateway's list omits is not ended (#750) - #753

Merged
V3RON merged 4 commits into
mainfrom
bug/750
Oct 20, 2026
Merged

V3RON merged 4 commits into
mainfrom
bug/750

Conversation

@V3RON

@V3RON V3RON commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes #750

Status

Implement: done (77/77 green) Review: round 2, 0 open Hardware: n/a Gate: not run

  • A lease the gateway's lease.list leaves out of one answer (devices, allocate, renewal, heartbeat) is not ended by the agent-device front. Checked by the repro test gateway-front.test.ts plus two tests added in review (released lease stays gone, omitted lease hidden from one devices answer); each break of the four checks and of stillHeld fails a test.

Assumptions

none

Review

Spec review: 2 blocking, 2 fixed, 0 notes. Code review: 2 blocking, 2 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 2. Tokens: 1.5M.
Runs: 11. Cost USD: 3.2091. Agent seconds: 2441.
Assessment: complete

Written by an agent.

@V3RON

V3RON commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Runs: 11. Cost USD: 3.2091. Agent seconds: 2441.
Tokens input 248, output 58952, cache read 4271827, cache write 510477.
- build implementer: claude-sonnet-5-5 234 s $0.1756
- audit implementer: claude-sonnet-5-5 220 s $0.1368
- review 1 reviewer both: claude-sonnet-5-5 386 s $0.2242
- review 1 spec both: claude-sonnet-5-5 32 s $0.1097
- review 1 code both: claude-opus-5-5 330 s $1.2957
- review 1 claims both: claude-sonnet-5-5 42 s $0.1252
- fix 1 implementer: claude-sonnet-5-5 332 s $0.2142
- review 2 reviewer both: claude-sonnet-5-5 425 s $0.2043
- review 2 spec: claude-sonnet-5-5 30 s $0.0909
- review 2 code both: claude-opus-5-5 347 s $0.536
- review 2 claims: claude-sonnet-5-5 63 s $0.0965
Finding outcomes: {"duplicate":1,"fixed":2}. Classes: {"duplicate of R1 (code F2)":1,"spec line undelivered: devices hides unlisted lease":1,"testing 3":1}.
{"findings":[
{"id":"R1","role":"spec","class":"spec line undelivered: devices hides unlisted lease","outcome":"fixed","path":"src/agent-device/front/token-devices.ts","fix":"eb64f9e09015052e91d1aeb4ed2cafb40c136f0d"},
{"id":"R2","role":"code","class":"testing 3","outcome":"fixed","path":"src/agent-device/gateway-front.test.ts","fix":"eb64f9e09015052e91d1aeb4ed2cafb40c136f0d"},
{"id":"R3","role":"code","class":"duplicate of R1 (code F2)","outcome":"duplicate","canonicalId":"R1","path":"src/agent-device/front/token-devices.ts"}
]}

Written by an agent.

@V3RON

V3RON commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Review notes

Not blocking, not verified. Each is one reviewer's claim.

  • code: src/agent-device/front/context.ts:161 (heldForAnother) also reads lease.list; untouched here, a wrong answer only leads to releaseSimlock, which simlock's ownership check guards.
  • code: a lease added to the map while the list call is still running is left out of that one answer; no caller can see it, since the allocate reply comes after the lease is in the map.

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review October 20, 2026 13:24
@V3RON
V3RON merged commit 97bc8ea into main Oct 20, 2026
46 checks passed
@V3RON
V3RON deleted the bug/750 branch October 20, 2026 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The agent-device front ends a lease for good when one lease.list answer leaves it out

1 participant